<template>
	<view class="content">
		<image class="logo" src="/static/logo.png"></image>
		<view class="vsresion">
			当前版本{{version}}
		</view>
		<view class="text-area">
			<text class="title">{{title}}</text>
		</view>
	<text>{{count}}</text>
		<button @click="dianji">点击</button>
		<image :src="url" mode=""></image>
		<navigator url="/pages/list/list?a=100">列表页</navigator>
		<button @click="anniu">跳转</button>
		<ceshi @setdata="jieshou"></ceshi>
	</view>
</template>

<script >
	import ceshi from "../../components/ceshi/ceshi.vue"
	export default {
		data() {
			return {
				version:"1.0.0"
				title: 'Hello',
				count:0,//初始值为0
				url:'https://img1.baidu.com/it/u=1580940358,2195166891&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=746'
			}
		},
		onLoad() {
//这里是小程序的生命周期
		},
		onReady() {
			
		},
		onShow() {
			
		},
		onUnload() {
			
		},
		methods: {
dianji(){
	this.count++
	this.title='标题'
},
anniu(){
	uni.navigateTo({
		url:'/pages/list/list?a=200'
	})
},
jieshou(data){
	console.log('接收',data);
}
},
components:{
	ceshi
}
	}
</script>

<style lang="less">
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
	}

	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
</style>
